package com.huawang.mdesign.model.service.util.reqif;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * Class representing enumeration literals.
 *
 * @author xdl
 * @since 2023-04-04
 */
@Getter
@Setter
@XStreamAlias(ReqIFConstants.ENUM_VALUE)
public class EnumValue extends Identifiable {

    /**
     * Link to owned EmbeddedValue.
     */
    @XStreamAlias(ReqIFConstants.PROPERTIES)
    private List<EmbeddedValue> properties = new ArrayList<>();

    /**
     * Back linkage to the owning DatatypeDefinitionEnumeration class.
     */
    @XStreamOmitField
    private DatatypeDefinitionEnumeration dataTpeDefEnum;
}
